package com.jsnu.xiaochi.service;

import com.jsnu.xiaochi.pojo.Comments;
import com.jsnu.xiaochi.pojo.Favorite;
import com.jsnu.xiaochi.pojo.Food;
import com.jsnu.xiaochi.pojo.Food_comments;

import java.awt.*;
import java.util.List;

public interface DetailService {
    public Food selectFoodById(String id);
    public List<Favorite> selectFavorite(String username, String foodid);
    public int insertFavorite(Favorite favorite);
    public int deleteFavorite(String username,String foodid);
    public int insertComment(Comments comments);
    public List<Comments> getAllComments(String foodId);
    public int insertFoodComment(Food_comments food_comments);
    public int getComentsCountByFoodid(String id);
}
